package com.syf.core.utils.classscan;

public class TypeClassFilter implements ClassFilter<Class<?>> {
    private Class<?> parrentCls;

    public TypeClassFilter(Class<?> parrentCls) {
        this.parrentCls = parrentCls;
    }

    @Override
    public boolean isMatch(Class clazz) {
        return parrentCls.isAssignableFrom(clazz);
    }
}
